//
//  KRAlbumList.m
//  cookBook
//
//  Created by kuroken on 16/1/11.
//  Copyright © 2016年 kuroken. All rights reserved.
//

#import "KRAlbumList.h"
#import <MJExtension.h>
#import "__lldb_autogen_nspair.h"

@implementation KRAlbumList
+ (void)load
{
    [KRAlbumList mj_setupReplacedKeyFromPropertyName:^__lldb_autogen_nspair *{
        return (__lldb_autogen_nspair *)@{
                                          @"title" : @"Title",
                                          @"img" : @"Img",
                                          @"url" : @"Url",
                                          @"recipe" : @"Recipe",
                                          
                                          @"cover" : @"Cover",
                                          @"collection" : @"Collection",
                                          @"content" : @"Content",
                                          @"recipeCount" : @"RecipeCount",
                                          @"ID" : @"Id",
                                          @"userName" : @"UserName",
                                          @"userID" : @"UserId",
                                          @"avatar" : @"Avatar"
                                          };
    }];
    
}

/* url : haodourecipe://haodou.com/collect/info/?id=8959025 */
- (void)setUrl:(NSString *)url
{
    _url = url;
    
    NSString *searchString = @"id";
    NSRange range = [url rangeOfString:searchString];
    _url_ID = [url substringFromIndex:range.location + range.length + 1];

}

@end
